# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-ipdb
pkgver=0.13.13
pkgrel=2
pkgdesc="IPython debugger"
url="https://github.com/gotcha/ipdb"
arch="all"
license="BSD-3-Clause"
depends="ipython"
makedepends="py3-setuptools py3-toml"
checkdepends="py3-mock"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gotcha/ipdb/archive/$pkgver.tar.gz"
builddir="$srcdir/ipdb-$pkgver"
options="!check"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"

	ln -s ipdb3 "$pkgdir"/usr/bin/ipdb

	install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
}

sha512sums="
e6052d1b32b8ba499a42a121eba1ab7e814c81ac738ffaa088524840f54420546c9b3fa8c8c6beef61f6f2eb24f57984fa9953a3e60b986d14e542dcf9e3c6c8  py3-ipdb-0.13.13.tar.gz
"
